package com.jingdianjichi.auth.domain.convert;

import com.jingdianjichi.auth.domain.entity.AuthPermissionBO;
import com.jingdianjichi.auth.domain.entity.AuthRoleBO;
import com.jingdianjichi.auth.infra.basic.entity.AuthPermission;
import com.jingdianjichi.auth.infra.basic.entity.AuthRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthPermissionConverter {
    AuthPermissionConverter INSTANCE = Mappers.getMapper(AuthPermissionConverter.class);
    AuthPermission converterBoToAuthPermission(AuthPermissionBO authRoleBO);
    AuthPermissionBO authPermissionToAuthPermissionDTO(AuthPermission authRole);
}
